using UnityEngine;

public class butShopFromGame : MonoBehaviour
{
	public bool canShow;

	private void OnClick()
	{
		MarketController.Instance.ShowMarket();
	}

	private void OnEnable()
	{
		if (GameController.instance != null && (GameController.instance.curTypeGame == TypeGame.race || GameController.instance.curTypeGame == TypeGame.tanks || GameController.instance.curTypeGame == TypeGame.Zombe || GameController.instance.curTypeGame == TypeGame.RocketLeague || GameController.instance.curTypeGame == TypeGame.WalkingRobots) && !canShow)
		{
			base.gameObject.SetActive(false);
		}
	}
}
